From 20603fcf9a4c03a729762a76dec07a9741b8cb8e Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Thu, 30 Mar 2006 16:53:37 +0100 Subject: [PATCH] The attached trivial patch fixes cases where a block device is mounted read-only in domain 0, but still fails to be shared with a domU, because it is mis-identified as being mounted writable. (On SUSE, CDs and DVDs are auto-mounted not with merely permissions "ro", but "ro,nosuid,nodev", hence the mis-identification.) Signed-off-by: Charles Coffing --- tools/examples/block | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/examples/block b/tools/examples/block index 5a43560eff..dae32dc234 100644 --- a/tools/examples/block +++ b/tools/examples/block @@ -72,7 +72,7 @@ check_sharing() then toskip="^$" else - toskip="^[^ ]* [^ ]* [^ ]* ro " + toskip="^[^ ]* [^ ]* [^ ]* ro[, ]" fi for file in $(cat /proc/mounts | grep -v "$toskip" | cut -f 1 -d ' ') -- 2.30.2